-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UISACQCOMP-223: ECS - Add reusable custom hooks to fix invalid reference issues related to holding names and locations #824
Conversation
…nce issues related to holding names and locations
|
||
const DEFAULT_DATA = []; | ||
|
||
export const useHoldingsAndLocations = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hook's name is too general given that it requires many specific arguments.
|
||
import { useCurrentUserTenants } from '../consortia'; | ||
|
||
export const useReceivingTenantIdsAndLocations = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please leave the purpose of this hook in the comments?
lib/utils/getHoldingLocations.js
Outdated
|
||
const DEFAULT_DATA = []; | ||
|
||
export const getHoldingLocations = async ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the name of this function, I expect to get a list of locations for a specific holding according to certain parameters, not for a list of holdings.
lib/utils/getHoldingLocations.js
Outdated
}; | ||
}; | ||
|
||
export const getHoldingLocationsByTenants = async ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar here
Quality Gate passedIssues Measures |
@folio-org/fe-tl-reviewers ^^^ please review |
Purpose
UISACQCOMP-223: ECS - Add reusable custom hooks to fix invalid reference issues related to holding names and locations to support those tickets UIOR-1330 and UIREC-393
Approach
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.